package com.ysd.lis.controller.qi;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.entity.qi.QiIndexSqlBusiness;
import com.ysd.lis.service.qi.QiIndexSqlBusinessService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * sql业务中间表 前端控制器
 * </p>
 *
 * @author WH
 * @since 2024-07-10
 */
@RestController
@RequestMapping("/api/qi/qiIndexSqlBusiness")
public class QiIndexSqlBusinessController extends BaseController {


    @Autowired
    QiIndexSqlBusinessService qiIndexSqlBusinessService;

    @ApiOperation("添加对照关系")
    @PostMapping("/addQiIndexSqlBusiness")
    public Result addQiIndexSqlBusiness(@RequestBody QiIndexSqlBusiness QiIndexSqlBusiness) {
        return qiIndexSqlBusinessService.addQiIndexSqlBusiness(QiIndexSqlBusiness);
    }

    @ApiOperation("查询")
    @GetMapping("/findQiIndexSqlBusinessList")
    public Result findQiIndexSqlBusinessList(QiIndexSqlBusiness pageParam){
        return qiIndexSqlBusinessService.findQiIndexSqlBusinessList(pageParam);
    }

    @ApiOperation("删除对照关系")
    @PostMapping("/deleteQiIndexSqlBusiness")
    public Result deleteQiIndexSqlBusiness(@RequestBody QiIndexSqlBusiness deleteParam) {
        return qiIndexSqlBusinessService.deleteQiIndexSqlBusiness(deleteParam);
    }
}
